var dropdownfunc1 = function (hoverpart, showpart) {
    hoverpart.onmouseover = function () {
        showpart.style.height = 250 + "px";
        showpart.style.transition = "1s";
    }
    showpart.onmouseover = function () {
        this.style.height = 250 + "px";
    }
    hoverpart.onmouseleave = function () {
        showpart.style.height = 0;
        showpart.style.transition = "1s";
    }
    showpart.onmouseleave = function () {
        this.style.height = 0;
        this.style.transition = "1s";
    }
}
var dropdownfunc2 = function (hoverpart, showpart) {
    hoverpart.onmouseover = function () {
        showpart.style.display="block";
    }
    showpart.onmouseover = function () {
        this.style.display="block";
    }
    hoverpart.onmouseleave = function () {
        showpart.style.display="none";
    }
    showpart.onmouseleave = function () {
        this.style.display="none";
    }
}
var tvbtn = document.getElementById("tv");
var airbtn = document.getElementById("air");
var binxbtn = document.getElementById("binx");
var xiyijibtn = document.getElementById("xiyiji");
var jiadianbtn = document.getElementById("jiadian");
var servebtn = document.getElementById("serve");
var example_one = document.getElementById("example_one");
dropdownfunc1(tvbtn,example_one);
dropdownfunc1(airbtn,example_one);
dropdownfunc1(binxbtn,example_one);
dropdownfunc1(xiyijibtn,example_one);
dropdownfunc1(jiadianbtn,example_one);
dropdownfunc1(servebtn,example_one);
var chiq=document.getElementById("chiq");
var pantv=document.getElementById("pantv");
var airpro=document.getElementById("airpro");
var water=document.getElementById("water");
var life=document.getElementById("life");
var digital=document.getElementById("digital");
var smart=document.getElementById("smart");
var tool=document.getElementById("tool");
var drop1=document.getElementById("example_two-1");
var drop2=document.getElementById("example_two-2");
dropdownfunc2(chiq,drop1);
dropdownfunc2(pantv,drop2);
dropdownfunc2(airpro,drop1);
dropdownfunc2(water,drop2);
dropdownfunc2(life,drop1);
dropdownfunc2(digital,drop2);
dropdownfunc2(smart,drop1);
dropdownfunc2(tool,drop2);